package com.example._04interceptor.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "用户管理")
@RequestMapping("/v1/user")
public class UserController {
    @GetMapping("/login")
    @ApiOperation("登录")
    public String login(){
        return "登录成功";
    }
    @ApiOperation("注册")
    @GetMapping("/reg")
    public String reg(){
        return "注册成功";
    }
}
